package com.xuhuan.algorithm.demo4;

/**
 * @author huan.xu
 * @ClassName Demo4CodeTest
 * @date 2021/4/22 16:13
 * @Description 测试栈实现队列的push()和pop()
 */
public class Demo4CodeTest {

    public static void main(String[] args){
        Demo4Code stackInstallQueueDemo =new Demo4Code();
        for(int i=1;i<5;i++){
            stackInstallQueueDemo.push(i);
        }
        for(int i=1;i<5;i++){
            System.out.println(stackInstallQueueDemo.pop());
        }
    }
}
